package com.demo.controller;

import com.demo.model.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Controller;

/**
 * @Author :蕉绿
 * @Date : 2023/2/10 9:49
 * @Version : V1.0
 * @Description :
 */
@Controller
public class StudentController {

    @Bean
    public Student getStudent() {
        Student student = new Student();
        student.setId(1);
        student.setName("索隆");
        return student;
    }
}
